home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / blanks-sample.tex < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.2 KB  |  46 lines

  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %                 Example of use of macros
  3. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4.      
  5. \magnification=\magstephalf
  6. \font\AnsFont=cmtt10 at 14pt
  7. \parskip=1pc
  8. \parindent=15pt
  9.      
  10. \newcount\QuestionNumber
  11. \QuestionNumber=1
  12.      
  13. \def\Question{\hangindent\parindent\ignorespaces\noindent\number
  14.    \QuestionNumber.\space
  15.    \advance\QuestionNumber by 1}
  16.      
  17. \DoAnswerstrue
  18.      
  19. \noindent{\bf With Answers:}
  20. \medskip
  21.      
  22. \Question If all men are mortal, and Socrates is a man then 
  23. \Ans{Socrates is mortal man, as well as a Greek man}.
  24.      
  25. \Question Five time four equals \Ans{20.}
  26.      
  27. \Question  Mares eat \Ans{oats}, and does eat \Ans{oats}, and little
  28. lambs eat \Ans{ivy}.  I would eat ivy too, \Ans{wouldn't you}?
  29.      
  30. \DoAnswersfalse
  31.      
  32. \QuestionNumber=1
  33. \bigskip
  34. \noindent{\bf Without Answers:}
  35. \medskip
  36.      
  37. \Question If all men are mortal, and Socrates is a man then
  38. \Ans{Socrates is mortal man, as well as a Greek man}.
  39.      
  40. \Question Five time four equals \Ans{20.}
  41.      
  42. \Question  Mares eat \Ans{oats}, and does eat \Ans{oats}, and little lambs
  43. eat \Ans{ivy}.  A kid'll eat ivy too, \Ans{would you}?
  44.      
  45. \bye
  46.